package com.kamikaze;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Leave_edit_doServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
 
    public Leave_edit_doServlet() {
        super();

    }


	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doPost(request,response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		String leaved_date = request.getParameter("leaved_date");
		String leaved_time_begin = request.getParameter("leaved_time_begin");
		String leaved_time_end = request.getParameter("leaved_time_end");
		String leave_number = request.getParameter("leave_number");
		String leave_note = request.getParameter("leave_note");
		String leaved_number =request.getParameter("leaved_number");
		Leave_edit_do leavedo = new Leave_edit_do();
		leavedo.edit_do
				(leaved_date, leaved_time_begin, leaved_time_end, leave_number, leave_note, leaved_number);
	
			response.sendRedirect("leave_check_and_edit.jsp");
			
	}

}
